package com.roadjava.rbac.service;

import com.roadjava.rbac.bean.entity.RoleDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.roadjava.rbac.bean.req.role.AssignAuthorityReq;
import com.roadjava.rbac.bean.req.role.RoleAddReq;
import com.roadjava.rbac.bean.req.role.RolePageReq;
import com.roadjava.rbac.bean.req.role.RoleUpdateReq;
import com.roadjava.rbac.bean.res.Result;
import com.roadjava.rbac.bean.vo.RoleVO;

import java.util.List;

/**
 * 针对表【role(角色表)】的数据库操作Service
 */
public interface RoleService extends IService<RoleDO> {


    void add(RoleAddReq addReq);


    Result<List<RoleVO>> queryPage(RolePageReq pageReq);


    void deleteById(Long id);


    RoleVO queryById(Long id);


    void modifyById(RoleUpdateReq updateReq);


    List<RoleVO> queryAll();


    void assignAuthority(AssignAuthorityReq assignAuthorityReq);
}
